import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;

public class PerferencesTest {
	public static void main(String[] args) throws BackingStoreException {
		Preferences userRoot=Preferences.userRoot();
		userRoot.put("MyValue", "liuxing");
		String [] childrenNames=userRoot.keys();
		for(String name:childrenNames) {
			System.out.println(name);
		}
	}
}
